home *** CD-ROM | disk | FTP | other *** search
- Path: mars.hyperk.com!usenet
- From: jag@srv.net (Jim Galbraith)
- Newsgroups: comp.lang.c++
- Subject: VC++ 4.0 - KILLFOCUS/SETFOCUS in Dialog App.
- Date: Sun, 11 Feb 1996 19:05:49 GMT
- Organization: HyperK a Division of Scientech, Inc.
- Message-ID: <4flf9t$ggp@mars.hyperk.com>
- NNTP-Posting-Host: pm_ras84.srv.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- Help!!
- I am developing some utilities that are set up as a dialog-based
- applications. The problem I am having is this: When I loose or gain
- keyboard focus (KILLFOCUS/SETFOCUS) I want to be able to release or
- regain control over some devices. The problem is I cann't seem to get
- notified when I am either loosing or receiving the keyboard focus. I
- have tried everything I know (which obviously isn't everything) to
- detect the KILLFOCUS/SETFOCUS messages, but they don't seem to be
- presented to my app. I've tried the obvious functions (WM_KILLFOCUS)
- presented by the Class Wizard, and watching messages pass through the
- PreTranslateMessage() function. Both without seeing the message show
- up.
-
- Anybody out there done this or know how to detect the loss of focus
- from a dialog based app? Any info is greatly apprecieated.
-
- Jim Galbraith
- jag@srv.net
-
-